<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<div style="display: flex; flex-direction: column">
  <label class="radio ml-5 mb-2" style="width: 22%" th:each="role:${roles}">
    <input type="radio" name="roleId" id="roleId" th:value="${role.id}" th:text="' ' + ${role.roleName}"
           th:checked="${checked eq role.id}">
  </label>
</div>